package com.majun.controller;

import com.majun.service.RsaService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;


/**
 * @author majun
 * @date 2025/05/14
 */
@RestController
public class RSAController {

    @Resource
    private RsaService rsaService;

    @GetMapping("/getPublicKey")
    public String getPublicKey() throws Exception {
        return rsaService.getPublicKey();
    }
}
